package com.gaowl.yygh.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

// 主启动类
@EnableDiscoveryClient  // 开启nacos的服务注册发现
@EnableFeignClients(basePackages = "com.gaowl")  // 启动FeignClient，并扫描指定位置的@FeignClient注解声明的Feign客户端接口
@EnableSwagger2
@ComponentScan(basePackages = "com.gaowl")   // 定义扫描包生成Swagger文档用
@SpringBootApplication
public class ServiceUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceUserApplication.class, args);
    }
}
